package geektime.spring.springbucks.service;

import com.baomidou.mybatisplus.extension.service.IService;
import geektime.spring.springbucks.entity.Coffee;
import geektime.spring.springbucks.exception.RollbackException;

import java.util.List;

public interface CoffeeService extends IService<Coffee> {

    List<Coffee> listByPage(Long pageNum, Long pageSize);


    boolean create(Coffee coffee) throws RollbackException;


    int update(Coffee coffee) throws RollbackException;


    int delete(Long id) throws RollbackException;


    void interceptFilter(String sql);

}